/*********************************************************************
*                SEGGER MICROCONTROLLER GmbH & Co. KG                *
*        Solutions for real time microcontroller applications        *
**********************************************************************
*                                                                    *
*        (c) 2003-2011     SEGGER Microcontroller GmbH & Co KG       *
*                                                                    *
*        Internet: www.segger.com    Support:  support@segger.com    *
*                                                                    *
**********************************************************************

--------- END-OF-HEADER --------------------------------------------*/

#define MAIN_C

#include "RTOS.H"
#include "BSP.h"
#include "GUI.h"

//void MainTask(void);

static OS_STACKPTR int Stack0[640];  /* Task stacks         */
static OS_TASK TCB0;                 /* Task-control-blocks */

/*********************************************************************
*
*       main
*/
void main(void) {
  OS_IncDI();                      /* Initially disable interrupts  */
  OS_InitKern();                   /* Initialize OS                 */
  OS_InitHW();                     /* Initialize Hardware for OS    */
	BSP_Init();                      /* Initialize BSP module         */
	BSP_SetLED(0);
  OS_CREATETASK(&TCB0, "MainTask", MainTask, 100, Stack0);
  OS_Start();


}
